const feedbackForm = document.getElementById('feedbackForm');

feedbackForm.addEventListener('submit', function (e) {
  e.preventDefault();

  const name = document.getElementById('name').value;
  const email = document.getElementById('email').value;
  const phone = document.getElementById('phone').value;
  const feedbackType = document.getElementById('feedbackType').value;
  const message = document.getElementById('message').value;
  const subscribe = document.getElementById('subscribe').checked;

  const feedbackData = {
    name: name,
    email: email,
    phone: phone,
    feedbackType: feedbackType,
    message: message,
    subscribe: subscribe
  };

  console.log('提交的反馈数据:', feedbackData);
  alert('反馈已提交，感谢您的支持！');
  feedbackForm.reset();
});

const submit = document.getElementById('submit');
  submit.addEventListener('click',function(){
  window.location.href = '../submit/submit.html';  
})

const feature = document.querySelector('.feature');
  feature.addEventListener('click',function(){
  window.location.href = '../faq/faq.html';  
})
